home *** CD-ROM | disk | FTP | other *** search
/ Nautilus 1992 July / Nautilus-3-8 / Nautilus-3-8.bin / Tools & Utilities / Techy Stuff / Frontier Scripts / random fortune cookie ƒ / TRT.Randomize DocServer Text next >
Encoding:
Text File  |  1992-01-25  |  746 b   |  9 lines

  1. Verb    Randomize
  2. Syntax    Randomize ()
  3. Parameters    None required.
  4. Action    Randomizes the pseudo-random number generator.
  5. Returns    True if successful.
  6. Example    Randomize ()
  7.     ╚ true
  8. Notes    This verb overcomes a bug in Frontier¬ 1.0. The bug is that the pseudo-random number generator uses the same sequence everytime Frontier is launched - this may be useful in some circumstances, but was not for me. When the Randomize verb is installed in Frontier, a code resource (of type RAND) is added to the Frontier.root file - the code contained in this resource "seeds" the psuedo-random number generator sequence with the current time of day. A call to Randomize in your customStartup script is suggested. This verb and code is copyrighted 1992 by Terry Teague.
  9.